package com.haulmont.asu.entity;

import com.haulmont.cuba.core.entity.BaseUuidEntity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Author: Sergey42
 * Date: 17.11.13 20:08
 */
@Table(name = "EXT_PROJECT_THEME_BOOKING")
@Entity(name = "ext$ProjectThemeBooking")
public class ProjectThemeBooking extends BaseUuidEntity {

    private static final long serialVersionUID = -5061806721086454001L;

    @ManyToOne
    @JoinColumn(name = "THEME_BOOKING_COMMAND_ID")
    protected ThemeBookingCommand themeBookingCommand;

    @ManyToOne
    @JoinColumn(name = "DIPLOMA_PROJECT_ID")
    protected DiplomaProject diplomaProject;

    public ThemeBookingCommand getThemeBookingCommand() {
        return themeBookingCommand;
    }

    public void setThemeBookingCommand(ThemeBookingCommand themeBookingCommand) {
        this.themeBookingCommand = themeBookingCommand;
    }

    public DiplomaProject getDiplomaProject() {
        return diplomaProject;
    }

    public void setDiplomaProject(DiplomaProject diplomaProject) {
        this.diplomaProject = diplomaProject;
    }
}
